package com.xjtu.chapter06.ex6_1;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/18 17:40
 */
public class TestPriceException {
    public static void main(String[] args) {
        Product product = new Product();
        product.productPrice = 20;
        try {
            if(product.productPrice<100) throw new PriceException();
        } catch (PriceException e) {
            e.getMessage();
        }

    }
}
